Skip to content

fix(bb): avoid debug abort in acir components missing witness test - #24782

Closed
AztecBot wants to merge 1 commit into
nextfrom
cb/fix-acir-components-debug-oob
Closed

fix(bb): avoid debug abort in acir components missing witness test#24782
AztecBot wants to merge 1 commit into
nextfrom
cb/fix-acir-components-debug-oob

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Summary

  • Fix AcirComponentsCheckTest.DetectsUnconstrainedWitnesses so it models an ACIR-vs-circuit mismatch without corrupting UltraCircuitBuilder::real_variable_index.
  • Keep the intended UNCONSTRAINED coverage by checking an ACIR circuit that references a witness absent from the synthesized builder circuit.

Root Cause

The nightly debug build failed in the canonical run AztecProtocol/aztec-packages#29632849696 while running AcirComponentsCheckTest.DetectsUnconstrainedWitnesses. The test intentionally resized builder.real_variable_index to 9 entries, but the builder's trace still referenced witness index 10. In the debug preset, _GLIBCXX_DEBUG turns that invalid vector subscript into an abort before ComponentsChecker can report the expected UNCONSTRAINED error.

The initially linked mirror run AztecProtocol/aztec-claude#29632747051 failed earlier with gzip: stdout: Broken pipe because scheduled mirror CI lacks the Redis/SSH/AWS environment. The canonical aztec-packages workflow has the real debug build failure above.

Testing

  • clang-format-20 -i barretenberg/cpp/src/barretenberg/acir_components_check/components_check.test.cpp
  • git diff --check
  • cmake --preset debug -DAVM_TRANSPILER_LIB= && cmake --build --preset debug --target acir_components_check_tests
  • ./build-debug/bin/acir_components_check_tests --gtest_filter=AcirComponentsCheckTest.DetectsUnconstrainedWitnesses
  • ./build-debug/bin/acir_components_check_tests

Created by claudebox · group: slackbot

@AztecBot AztecBot added ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure claudebox Owned by claudebox. it can push to this PR. labels Jul 18, 2026
@AztecBot

Copy link
Copy Markdown
Collaborator Author

Automatically closing this stale claudebox draft PR (no updates for 5+ days). Re-open if still needed.

@AztecBot AztecBot closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. ci-no-fail-fast Sets NO_FAIL_FAST in the CI so the run is not aborted on the first failure claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant